package com.yunche.yunchebusiness.mvp.model

import com.google.gson.JsonObject
import com.yunche.yunchebusiness.base.rx.SchedulerUtils
import com.yunche.yunchebusiness.network.RetrofitManager
import io.reactivex.Observable
import okhttp3.RequestBody

/**
 * Create by Crcker on 2019/1/10 11:07
 * Email: Crcker@163.com
 */


class UpdataModel {

    fun checkVersion(requestBody: RequestBody): Observable<JsonObject> {
        return RetrofitManager.service.checkVersion(requestBody).compose(SchedulerUtils.ioToMain())
    }
}